home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / ftp / documents / appnotes / 001_015 / 008c / Text
Encoding:
Text File  |  1994-03-15  |  9.9 KB  |  233 lines

  1. -----------------------------------------------------------------------------
  2. 10th September 1992
  3. -----------------------------------------------------------------------------
  4. Support Group Application Note
  5. Number: 008
  6. Issue: 1
  7. Author: PD
  8. -----------------------------------------------------------------------------
  9.  
  10. View Hints and Tips
  11.  
  12. -----------------------------------------------------------------------------
  13. Applicable Hardware: BBC B
  14.                      BBC B+
  15.                      Master Series
  16.  
  17. Related Application Notes:
  18.                      Label printing within a View macro
  19.  
  20. -----------------------------------------------------------------------------
  21. Copyright (C) Acorn Computers Limited 1992
  22.  
  23. Every effort has been made to ensure that the information in this leaflet is 
  24. true and correct at the time of printing. However, the products described in
  25. this leaflet are subject to continuous development and improvements and
  26. Acorn Computers Limited reserves the right to change its specifications at
  27. any time. Acorn Computers Limited cannot accept liability for any loss or
  28. damage arising from the use of any information or particulars in this
  29. leaflet. ACORN, ECONET and ARCHIMEDES are trademarks of Acorn Computers
  30. Limited.
  31. -----------------------------------------------------------------------------
  32. Support Group
  33. Acorn Computers Limited
  34. Acorn House
  35. Vision Park
  36. Histon
  37. Cambridge
  38. CB4 4AE                                                  
  39. -----------------------------------------------------------------------------
  40.  
  41.  
  42.  
  43. This  document  attempts  to help with commonly experienced View problems. 
  44. Additional information on the  features  mentioned  can  be  found in View
  45. books supplied with the program.
  46.  
  47. PRINTERS AND VIEW
  48.  
  49. View can use virtually any printer that is compatible  with  the computer. 
  50. To use any special features the printer may have you will  need  a printer
  51. driver,  and  this  is  best  obtained  using the Acornsoft Printer Driver
  52. Generator.
  53.  
  54. This program is a series of questions  on  your  printer,  which should be
  55. answered  using  the  manual  for your printer.  Understanding the printer
  56. manual is probably the most  difficult  part.  The  program then creates a
  57. printer driver for subsequent use by the View family.
  58.  
  59. Some hints on the use of the Printer Driver Generator.
  60.  
  61. Don't  forget the HT 2 130 command if you  want  to  access  the  extended
  62. highlight codes.
  63.  
  64. The questions  in  the Printer Driver Generator are only suggested uses of
  65. that particular highlight code  - it is up to you what function you choose
  66. for that code.
  67.  
  68. Effects that are required for  the  whole  document,  perhaps  for example
  69. condensed  mode,  can be entered in response to the printer initialisation
  70. question, and then  will  take  effect  immediately  printing starts. This
  71. question also allows a large number of codes.
  72.  
  73. Characters #`_'$
  74.  
  75. Dollar Sign and Hash sign - You have  to  enter the codes the PRINTER uses
  76. for these characters.  For ` you enter "#".  If your  printer prints # and $ 
  77. characters;  then you have to enter the codes from the  printer  manual into
  78. the PDG.
  79.  
  80. Different printers use  different codes to represent the above characters. 
  81. Some printers do not  have  some of the characters, others use long escape
  82. sequences to reach them.
  83.  
  84. Sometimes you will find that the  character(s)  you want can be printed by
  85. sending  other  characters from the BBC. For example  you  may  find  that
  86. sending # prints  ` or sending ` prints $. This may be the easiest or only
  87. way of printing the character you want.
  88.  
  89. The  Printer  Driver  generator  recognizes  this  problem  and  gives  an
  90. alternative way of printing #/` and $. You can enter a code or codes which
  91. the printer uses to  print the characters.  So for example if you reply to
  92. PDG response: ESC 17 to  the  code  for ` question then the printer driver
  93. will send ESC 17 to the printer when it receives the pound sign from VIEW. 
  94.  
  95.  
  96. MICROSPACING AND CHARACTER PITCH
  97.  
  98. View can adjust the spacing between words to  'justify'  the text. If your
  99. printer  is  capable  of  it,  this adjustment can be in  fractions  of  a
  100. character width. To use this feature,  type  MICROSPACE  after  loading  a
  101. suitable printer driver.
  102.  
  103. Note  that this is not the same as proportional spacing, where the spacing
  104. of idividual  characters  is  adjusted.  View  cannot proportionally space
  105. text, but your printer may be capable of doing this independently.
  106.  
  107.  
  108. View, by default, assumes 12 pitch text  when calculating this spacing. To
  109. change this, there is optional parameter to the  MICROSPACE  command. This
  110. takes the form of a number indicating the character width  in  1/120ths of
  111. an inch.  This means that the pitch, which is characters to the  inch,  is
  112. 120 divided by this number.  So....
  113.  
  114.                  10 pitch is MICROSPACE 12
  115.                  12 pitch is MICROSPACE 10
  116.                  15 pitch is MICROSPACE 8
  117.  
  118. and so on.
  119.  
  120. MICROSPACING  -  When  typing  text  in  VIEW with "Justification" on VIEW
  121. inserts spaces into the line between words  to align the text at the right
  122. margin.  This can give an uneven number of spaces between words.
  123.  
  124. MICROSPACING on the printer is changing the gaps between words so that all
  125. of  the gaps are the same length and  the  text  is  still  right-aligned.
  126. Clever printer  drivers  can  do this in conjunction with the printer - IF
  127. the printer supports microspacing.
  128.  
  129. PROPORTIONAL  SPACING  - Normally when typing  text  on  the  screen  and
  130. printing, each character is displayed having the same width, therefore, in
  131. VIEW, 74 characters fit under the standard ruler.
  132.  
  133. Proportional  spacing  is  printing  each  character  in  its  own  width.
  134. Therefore, more 'i's  and 'j's will fit on a line than 'm's and 'w's. Many
  135. printers can do this  and  VIEW  printer  drivers  can  switch  on and off
  136. proportional  spacing.  BUT  if  you  change  the length of characters the
  137. alignment  at  the  right  margin  will  be  lost.  This  is  because  the
  138. proportional spacing is done AFTER the alignment.
  139.  
  140. To USE microspacing:
  141.  
  142. 1) In PDG (see pages 10 and  17  of manual) specify microspacing. You need
  143. to  refer  to  your  printer  manual for whether HMI  code  adjustment  is
  144. required. If in doubt type NO.  You  need to get HMI setting code from the
  145. printer manual.
  146.  
  147. 2) Before printing load printer driver with: PRINTER  epson  (for example)
  148. then  set  microspacing  with MICROSPACE. You may be able to  pur  numbers
  149. after the MICROSPACE command  to  achieve  different "pitches" (lengths of
  150. character) on the printer.  Try MICROSPACE 12 (or 10, or 15).
  151.  
  152.  
  153. PAGE LAYOUT
  154.  
  155. View has a very flexible way of  controlling the layout of the text on the
  156. page, but this can be confusing at first.  Unexpected  blank  areas in the
  157. text  are  usually  an indication that you haven't taken advantage of this
  158. flexibility.
  159.  
  160. A View page is  divided  into 6 parts, listed here in the order they occur
  161. on the page.
  162.  
  163.  
  164. THE TOP MARGIN    A number of blank lines printed  at  the top of the  page, 
  165. before the header. View defaults to 4 lines,  but this can be changed by the
  166. stored command TM n,  where n  is  the  number of lines you would like. n 
  167. can be 0, when no lines will be printed.               
  168.  
  169. THE HEADER A single line which is  printed on each page. It is  defined with
  170. the DH command and  can be temporarily  changed back to a blank line with 
  171. the  HE command.  (Note  that  a  line is always printed, although it  may
  172. be blank.)
  173.  
  174. THE HEADER MARGIN A number of blank  lines  printed  after the header  and
  175. before the main text. View defaults to 4 lines,  but this can be changed by
  176. the stored command HM n,  where n is the number of lines  you  would  like.
  177. n  can be 0, when no lines will be printed.
  178.  
  179. THE MAIN TEXT The  main  text will be printed here. The number of  lines
  180. depends on  the margins and page length - the  explanation of page length
  181. below.
  182.  
  183. THE FOOTER MARGIN A number of blank lines printed after the main text  and
  184. before the footer.  View  defaults  to 4 lines,  but this can be changed by
  185. the stored command FM n,  where n is the number of lines  you  would  like.
  186. n  can be 0, when no lines be printed.
  187.  
  188. THE FOOTER A  single line which is printed on each page. It is  defined with
  189. the DF command, and can be temporarily  changed back  to  a blank line with
  190. the FO command.   (Note that a line  is  always  printed, although it  may
  191. be blank.)
  192.  
  193. THE BOTTOM MARGIN A number of blank lines printed at  the  bottom  of  the 
  194. page  after  the  footer.  View  defaults to 4  lines,  but  this  can  be 
  195. changed by  the  stored  command FM n, where n is  the  number  of lines you 
  196. would  like.  n  can  be 0, when no lines  will  be  printed.
  197.  
  198. The commands that affect the  page  layout take effect on the next page to
  199. be  printed.  A common mistake is to  leave  a  blank  line  before  these
  200. commands, which is  printed  as  part of the text area, so the header, and
  201. header and footer margins have been  printed before the commands affecting
  202. them have been encountered. This results in  the first page not having the
  203. desired layout, but second and subsequent pages being correct.
  204.  
  205. If you have View 3, and want just  continuous  text, the PB stored command
  206. can be used to turn off all the margins, and headers and footers.
  207.  
  208.  
  209. PAGE LENGTH
  210.  
  211. The page length in View means the total of the  margins, header lines, and
  212. text area. This means that the number of lines of main text is
  213.  
  214.          page length - margins - header line - footer line
  215.  
  216. For the default length of 66 lines, and with the default margins this is
  217.  
  218.          66 - 4*4 - 2 = 48 lines of text.
  219.  
  220. Standard paper is 66 lines long, but you can alter the  View  page  length
  221. with  the  PL  stored  command.  If  your  printer  skips  the perforation
  222. automatically, you will need to account for this.
  223.  
  224. A  simple  way to calculate the length required is to  run  the  following
  225. BASIC program (hit  ESCAPE  when  more  than  a page has been printed) and
  226. count the number of lines appearing on a  page.  This  is  the  value  for
  227. view's page length.
  228.  
  229.          10 VDU 2
  230.          20 REPEAT
  231.          30 PRINT "A printing line"
  232.          40 UNTIL FALSE
  233.